#include "citywidget.h"
#include "ui_citywidget.h"

citywidget::citywidget(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::citywidget)
{
    ui->setupUi(this);
    this->setWindowTitle("请输入城市信息");
}

citywidget::~citywidget()
{
    delete ui;
}

void citywidget::on_buttonBox_accepted()
{
    us=1;
    cityname=ui->lineEdit_cityname->text();
}

void citywidget::on_buttonBox_rejected()
{
    us=0;
}
